package cn.le.util;

import cn.le.bean.enums.EnumMsgCode;
import cn.le.bean.util.RestfullClient;
import cn.le.bean.vo.NettyMsg;
import cn.le.netty.cient.NettyClient;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class BStart {
    /*public static void main(String[] args) throws IOException {
        //登录im-服务器
        String url= "127.0.0.1:8081/im/imUser/login";
        Map<String,Object> param =  new HashMap<>();
        param.put("pwd","b");
        param.put("name","b");
        RestfullClient.okPost(url,param);
        //登录netty服务器
        NettyClient.login("127.0.0.1",8080,1);
        System.out.println("---------欢迎使用im通信,下面请开始你的表演---------");
        System.out.print("a:");
        boolean flag = true;
        while (flag){
            String content = InputUtil.getString("输入内容;").trim();
            if ("bye".equalsIgnoreCase(content)){
                flag = false;
            }
            NettyMsg msg = new NettyMsg(UUID.randomUUID().toString(),2,1,content, EnumMsgCode.point_send.getCode());
            NettyClient.sendPoint(msg);
        }
    }*/
}
